package com.cuoyi.coupon.mall.enums;

/**
 * @author zhang.cheng
 * 2022/3/18 11:37 PM
 */
public enum ErrorEnum {
    PARAMS_ERROR(400, "参数错误"),
    SYSTEM_ERROR(500, "服务繁忙,请稍后再试");

    private final String message;
    private final int code;

    private ErrorEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public String message() {
        return this.message;
    }

    public int code() {
        return this.code;
    }
}
